package com.kaili.db.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.kaili.common.exception.BaseExcept;
import com.kaili.pojo.dto.abnormal.EwbAbnormalAddDTO;
import com.kaili.pojo.entity.HsOptEwbAbnormal;
import com.kaili.pojo.vo.ArriveEwbVO;
import com.kaili.pojo.vo.ewbAbnormalVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cgm
 * @since 2018-05-08
 */
public interface IHsOptEwbAbnormalService extends IService<HsOptEwbAbnormal> {

    int createdEwbAbnormalBS(EwbAbnormalAddDTO ewbAbnormalAddDTO) throws BaseExcept;

    int createdEwbAbnormalAPP(HsOptEwbAbnormal hsOptEwbAbnormal)throws BaseExcept;

    int modifyAbnormal(EwbAbnormalAddDTO ewbAbnormalDTO) throws BaseExcept;

    int deleteAbnormalByEwb(HsOptEwbAbnormal hsOptEwbAbnormal) throws BaseExcept;

    Page<ewbAbnormalVO> queryAbnormal(Page<ewbAbnormalVO> page, Map map) throws BaseExcept;

    ewbAbnormalVO getAbnormalByEwbNo(HsOptEwbAbnormal hsOptEwbAbnormal)throws BaseExcept;

    ewbAbnormalVO queryAbnormalByEwbNo(EwbAbnormalAddDTO hsOptEwbAbnormal) throws BaseExcept;

    List<ArriveEwbVO> queryOriginalEwb(Map<String, Object> maps)throws BaseExcept;

    List<ewbAbnormalVO> exportAbnormalQueryList(Map map) throws BaseExcept;

}
